home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 114 / CDRom114.iso / internet / temathun / Mostly Crystal.jar / global / tree.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2004-10-05  |  7.2 KB  |  286 lines

  1. /*
  2.  * The contents of this file are subject to the Netscape Public
  3.  * License Version 1.1 (the "License"); you may not use this file
  4.  * except in compliance with the License. You may obtain a copy of
  5.  * the License at http://www.mozilla.org/NPL/
  6.  *
  7.  * Software distributed under the License is distributed on an "AS
  8.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9.  * implied. See the License for the specific language governing
  10.  * rights and limitations under the License.
  11.  *
  12.  * The Original Code is Mozilla Communicator client code, released
  13.  * March 31, 1998.
  14.  *
  15.  * The Initial Developer of the Original Code is Netscape
  16.  * Communications Corporation. Portions created by Netscape are
  17.  * Copyright (C) 1998-2001 Netscape Communications Corporation. All
  18.  * Rights Reserved.
  19.  *
  20.  * Contributor(s):
  21.  *   Joe Hewitt (hewitt@netscape.com)
  22.  *   Dean Tessman (dean_tessman@hotmail.com)
  23.  */
  24.  
  25. /* ===== tree.css ===================================================
  26.   == Styles used by the XUL outline element.
  27.   ======================================================================= */
  28.  
  29. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  30.  
  31. /* ::::: tree ::::: */
  32.  
  33. tree {
  34.   margin: 0px 4px;
  35.   border: 2px solid;
  36.   -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
  37.   -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
  38.   -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
  39.   -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
  40.   background-color: -moz-Field;
  41.   color: -moz-FieldText;
  42.   -moz-appearance: listbox;
  43. }
  44.  
  45. /* ::::: tree rows ::::: */
  46.  
  47. tree[selstyle="primary"] > treechildren::-moz-tree-row,
  48. treechildren::-moz-tree-row {
  49.   border: 1px solid transparent;
  50.   background-color: transparent;
  51.   min-height: 18px;
  52.   height: 1.3em;
  53. }
  54.  
  55. treechildren::-moz-tree-row(selected) {
  56.   background-color: -moz-Dialog;
  57. }
  58.  
  59. treechildren::-moz-tree-row(selected, focus) {
  60.   background-color: Highlight;
  61. }
  62.  
  63. treechildren::-moz-tree-row(current, focus) {
  64.   border: 1px dotted #000000;
  65. }
  66.  
  67. treechildren::-moz-tree-row(selected, current, focus) {
  68.   border: 1px dotted #C0C0C0;
  69. }
  70.  
  71. /* ::::: tree cells ::::: */
  72.  
  73. treechildren::-moz-tree-cell {
  74.   padding: 0px 2px 0px 2px;
  75. }
  76.  
  77. tree[selstyle="primary"] > treechildren::-moz-tree-cell-text,
  78. treechildren::-moz-tree-cell-text {
  79.   border: 1px solid transparent;
  80.   color: inherit;
  81. }
  82.  
  83. treechildren::-moz-tree-cell-text(selected) {
  84.   color: -moz-DialogText;
  85. }
  86.  
  87. tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected) {
  88.   background-color: -moz-Dialog;
  89.   color: -moz-DialogText;
  90. }
  91.  
  92. treechildren::-moz-tree-cell-text(selected, focus) {
  93.   color: HighlightText;
  94. }
  95.  
  96. tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected, focus) {
  97.   background-color: Highlight;
  98.   color: HighlightText;
  99. }
  100.  
  101. tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, current, focus) {
  102.   border: 1px dotted #000000;
  103. }
  104.  
  105. tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected, current, focus) {
  106.   border: 1px dotted #C0C0C0;
  107. }
  108.  
  109.  
  110. /* ::::: lines connecting cells ::::: */
  111.  
  112. tree[selstyle="primary"] > treechildren::-moz-tree-line,
  113. treechildren::-moz-tree-line {
  114.   border: 1px dotted ThreeDShadow;
  115. }
  116.  
  117. treechildren::-moz-tree-line(selected, focus) {
  118.   border: 1px dotted HighlightText;
  119. }
  120.  
  121.  
  122. /* ::::: tree separator ::::: */
  123.  
  124. treechildren::-moz-tree-separator {
  125.   border-top: 1px solid ThreeDShadow;
  126.   border-bottom: 1px solid ThreeDHighlight;
  127. }
  128.  
  129.  
  130. /* ::::: drop feedback ::::: */
  131.  
  132. tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, dropOn),
  133. treechildren::-moz-tree-cell-text(primary, dropOn) {
  134.   background-color: Highlight;
  135.   color: HighlightText;
  136. }
  137.  
  138. treechildren::-moz-tree-drop-feedback {
  139.   background-color: Highlight;
  140.   width: 50px;
  141.   height: 2px;
  142.   margin-left: 5px;
  143. }
  144.  
  145. /* ::::: tree progress meter ::::: */
  146.  
  147. treechildren::-moz-tree-progressmeter {
  148.   margin: 2px 4px;
  149.   border: 2px solid;
  150.   -moz-border-top-colors: ThreeDShadow -moz-Dialog;
  151.   -moz-border-right-colors: ThreeDHighlight -moz-Dialog;
  152.   -moz-border-bottom-colors: ThreeDHighlight -moz-Dialog;
  153.   -moz-border-left-colors: ThreeDShadow -moz-Dialog;
  154.   background-color: -moz-Dialog;
  155.   color: ThreeDShadow;
  156. }
  157.  
  158. treechildren::-moz-tree-cell-text(progressmeter) {
  159.   margin: 2px 4px;
  160. }
  161.  
  162. /* ::::: tree columns ::::: */
  163.  
  164. treecol,
  165. treecolpicker { 
  166.   -moz-appearance: treeheadercell;
  167.   -moz-box-align: center;
  168.   -moz-box-pack: center;
  169.   border: 2px solid;
  170.   -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow;
  171.   -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  172.   -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
  173.   -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow;
  174.   background-color: -moz-Dialog;
  175.   color: -moz-DialogText;
  176.   padding: 0px 4px;
  177. }
  178.  
  179. .treecol-image {
  180.   padding: 0px 1px;
  181. }
  182.  
  183. .treecol-text {
  184.   margin: 0px !important;
  185. }
  186.  
  187. treecol[hideheader="true"] {
  188.   -moz-appearance: none;
  189.   border: none;
  190.   padding: 0;
  191. }
  192.  
  193. /* ..... internal box ..... */
  194.  
  195. treecol:hover:active,
  196. treecolpicker:hover:active {
  197.   border-top: 2px solid;
  198.   border-right: 1px solid;
  199.   border-bottom: 1px solid;
  200.   border-left: 2px solid;
  201.   -moz-border-top-colors: ThreeDShadow -moz-Dialog;
  202.   -moz-border-right-colors: ThreeDShadow;
  203.   -moz-border-bottom-colors: ThreeDShadow;
  204.   -moz-border-left-colors: ThreeDShadow -moz-Dialog;
  205.   padding: 1px 4px 0px 5px;
  206. }
  207.  
  208. .treecol-image:hover:active {
  209.   padding: 1px 1px 0px 2px;
  210. }
  211.  
  212. /* ::::: column drag and drop styles ::::: */
  213.  
  214. treecol[dragging="true"] {
  215.   -moz-border-top-colors: ThreeDDarkShadow transparent !important;
  216.   -moz-border-right-colors: ThreeDDarkShadow transparent!important;
  217.   -moz-border-bottom-colors: ThreeDDarkShadow transparent !important;
  218.   -moz-border-left-colors: ThreeDDarkShadow transparent !important;
  219.   background-color: ThreeDShadow !important;
  220.   color: ThreeDHighlight !important;
  221. }
  222.  
  223. treecol[insertafter="true"] {
  224.   -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  225. }
  226.  
  227. treecol[insertbefore="true"] {
  228.   -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow;
  229. }
  230.  
  231. treechildren::-moz-tree-column(insertbefore) {
  232.   border-left: 1px solid ThreeDShadow;
  233. }
  234.  
  235. treechildren::-moz-tree-column(insertafter) {
  236.   border-right: 1px solid ThreeDShadow;
  237. }
  238.  
  239. /* ::::: sort direction indicator :::::  */
  240.  
  241. .treecol-sortdirection {
  242.   list-style-image: none;
  243. }
  244.  
  245. .treecol-sortdirection[sortDirection="ascending"] {
  246.   list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
  247. }
  248.  
  249. .treecol-sortdirection[sortDirection="descending"] {
  250.   list-style-image: url("chrome://global/skin/arrow/arrow-up.gif");
  251. }
  252.  
  253. /* ::::: column picker :::::  */
  254.  
  255. .tree-columnpicker-icon {
  256.   list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
  257. }
  258.  
  259. /* ::::: twisty :::::  */
  260.  
  261. treechildren::-moz-tree-twisty {
  262.   padding-right: 2px;
  263.   width: 10px; /* The image's width is 9 pixels */
  264.   list-style-image: url("chrome://global/skin/tree/twisty-clsd.png");
  265. }
  266.  
  267. treechildren::-moz-tree-twisty(open) {
  268.   width: 10px; /* The image's width is 9 pixels */
  269.   list-style-image: url("chrome://global/skin/tree/twisty-open.png");
  270. }
  271.  
  272. treechildren::-moz-tree-indentation {
  273.   width: 16px;
  274. }
  275.  
  276. /* ::::: gridline style ::::: */
  277.  
  278. treechildren.gridlines::-moz-tree-cell {
  279.   border-right: 1px solid GrayText;
  280.   border-bottom: 1px solid GrayText;
  281. }
  282.  
  283. treechildren.gridlines::-moz-tree-row {
  284.   border: none;
  285. }
  286.